/**
 * Created by ruiyuan on 15-8-24.
 */
var mysqlUtil = require('../common/utils/mysqlUtil');
var UserLbs = mongoose.model('user_lbs_record');

exports.postAppRequestStatusService = function (input, deviceId, callback) {

    var data = {
        service_code: input.serviceCode,
        url: input.url,
        method: input.method,
        http_status: input.httpStatus,
        status: input.status,
        message: input.message,
        time: input.time,
        net_type: input.netType,
        net_provider: input.netProvider,
        lat: input.lat,
        lng: input.lng,
        address: input.address,
        device_id: deviceId
    };
    /*  宝宝树66小区二次改造    del   dayu  20170723   start   */
    //mysqlUtil.query('insert into app_request_log set?', data, callback)
    /*  宝宝树66小区二次改造    del   dayu  20170723   end   */
};

exports.postUserLbsService = function (input, callback) {
    var temp = new UserLbs(input);
    temp.save(callback)
};